package com.floreysoft.jmte.staticCompiler;

import com.floreysoft.jmte.Engine;
import com.floreysoft.jmte.template.Template;
import com.floreysoft.jmte.template.TemplateCompiler;

/**
 * A compiler that spits out full optimized
 * 
 * @author olli
 * 
 */
public class StaticJavaxCompilerBytecodeCompiler implements TemplateCompiler {

	@Override
	public Template compile(String template, String sourceName, Engine engine) {
		// TODO generates suptypes AbstractCompiledTemplate by
		// 1. Generating the highly optimized Java Source for the template have
		// static declarations for all top level elements used inside the
		// template - where declarations are missing we issue warnings and do
		// not optimize
		// 2. Compiles the Java code either using
		// 2a) Janino (for the GAE version that does support Janino)
		// 2b) javax.compiler (for a non GAE version that can do ship without
		// janino)

		return null;
	}
}
